﻿package com.lemon.tools;



/**
 * @author lemonjesnme
 * 
 */
public class Constants {

	/**
	 * server network address
	 */

	public static void init(){
		if (remote == true) {
			SERVER_ADDRESS = "122.225.101.62";
			DBNAME = "lemonjesnme";
			tomcatSrcPath = "c:\\workspace\\tom\\res\\img\\";
			USER = "root";
			PASSWORD = "llllemon";
		}else{
			SERVER_ADDRESS = "192.168.0.118";
			DBNAME = "lemonjesnme";
			System.out.println("[Server constants] DBNAME:"+DBNAME);
			tomcatSrcPath = "c:\\workspace\\tom\\res\\img\\";
			USER = "root";
			PASSWORD = "llllemon";
		}
	}

	public static String SERVER_ADDRESS = null;
	public static String PORT = ":8090";
	public static String DBNAME = null;
	public static String tomcatSrcPath = "c:\\workspace\\tom\\res\\img\\";
	public static String USER = "";
	public static String PASSWORD = "";
	public static boolean remote = true;
	
	/**
	 * system encoding property
	 */
	public static String encoding;
	static {
		encoding = System.getProperty("file.encoding");
		System.out.println("system.property:" + encoding);
	}
}

